import * as roleApi from '@/api/role';
export default {
    namespaced: true,
    state: {
        roleList: [],
        details
        
    },
    mutations: {
        SET_ROLE_INFO(state, newValue) {
            state.roleList = newValue
        },
    },
    actions: {
        async updateRoleList(context) {
            const res = await roleApi.getRoleList()
            context.commit('SET_ROLE_INFO', res.data.data.rows)
            console.log(res);
        },
    }
}